package com.example.myapplication;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class file_MainActivity5 extends AppCompatActivity {

    Button button;
    TextView textView;
    SharedPreferences sp;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_file_main5);

        button=findViewById(R.id.file_button);
        textView=findViewById(R.id.file_id_1_text);

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                 sp=getSharedPreferences("whl", Context.MODE_PRIVATE);
                 SharedPreferences.Editor editor=sp.edit();
//                 sp.edit().putString("whl","hahahahhahahahahah");
//                 editor.commit();

            }
        });

    }
}